xen/arm: p2m: Rework the interface of apply_p2m_changes and use typesafe
authorJulien Grall <julien.grall@arm.com>
Tue, 12 Jul 2016 13:59:35 +0000 (14:59 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Jul 2016 17:52:15 +0000 (18:52 +0100)
commita07e920bbffc5cd64c8e4902b9fbca746bb81aff
treee609341c3d859f2807af1eb7c511612f1169bd32
parent91c13be9703e89bf63febad14271f07feb195de4
xen/arm: p2m: Rework the interface of apply_p2m_changes and use typesafe

Most of the callers of apply_p2m_changes have a GFN, a MFN and the
number of frame to change in hand.

Rather than asking each caller to convert the frame to an address,
rework the interfaces to pass the GFN, MFN and the number of frame.

Note that it would be possible to do more clean-up in apply_p2m_changes,
but this will be done in a follow-up series.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c